package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SolidusFactor implements Term {

    private int beginIndex;
    private int endIndex;
    private Term term;
    private Factor factor;

    public SolidusFactor(Term term,
                         Factor factor) {
        this.beginIndex = term.getBeginIndex();
        this.endIndex = factor.getEndIndex();
        this.term = term;
        this.factor = factor;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public Term getTerm() {
        return term;
    }

    public Factor getFactor() {
        return factor;
    }
    
}
